import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  redirect: '/employees',
  children: [{
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/employees.vue'),
    meta: { title: '员工管理', icon: 'people' }
  },

  {
    path: 'detail/:userId',
    name: 'detail',
    component: () => import('@/views/employees/detail.vue'),
    hidden: true
  },
  {
    path: 'print/:id', // 二级默认路由
    component: () => import('@/views/employees/components/print.vue'), // 按需加载
    hidden: true

  }

  ]
}
